LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := qme_glue

LOCAL_CFLAGS := -DANDROID -DOS_ANDROID


MY_FILES_PATH  :=  $(LOCAL_PATH)\app_scheduler
				  
				   
MY_FILTER_OUT_CONTAIN := %shell.c %.h %.hpp %.mm %.proto %test.cpp %mock_server.cpp %tests.cpp %_win.cc %_ios.cpp %.txt %html_utils.cpp %wwhttpapi.cpp %authhttpapi.cpp

# login_protocol_handler.cpp && mail_login_protocol_handler.cpp  ->  %login_protocol_handler.cpp 只合并这一个,task系列不太好用简化

My_All_Files := $(foreach src_path,$(MY_FILES_PATH), $(shell find "$(src_path)" -type f) )
My_All_Files += $(wildcard $(LOCAL_PATH)/../yoga/*.cpp)
My_All_Files := $(My_All_Files:$(LOCAL_PATH)/./%=$(LOCAL_PATH)%)
MY_SRC_LIST  := $(filter-out $(MY_FILTER_OUT_CONTAIN),$(My_All_Files)) 
MY_SRC_LIST  := $(MY_SRC_LIST:$(LOCAL_PATH)/%=%)
      
LOCAL_SRC_FILES += $(MY_SRC_LIST)

LOCAL_LDLIBS += -L$(SYSROOT)/usr/lib \
                -llog \
                -lz \
                -lc
                
LOCAL_LDFLAGS += -fPIC

#$(warning "the value of LOCAL_SRC_FILES is $(LOCAL_SRC_FILES)")

LOCAL_C_INCLUDES += $(LOCAL_PATH)/.././ \
					$(LOCAL_PATH)/../jni \


LOCAL_STATIC_LIBRARIES += base_main \

include $(BUILD_SHARED_LIBRARY)

$(call import-add-path, .)

$(call import-module, .)
